/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp.gui.tabs;


import fwdisp.gui.tabs.settings.AnalyticalSettingsPanel;
import fwdisp.gui.tabs.settings.AreaSettingsPanel;
import fwdisp.gui.tabs.settings.AusrueckSettingsPanel;
import fwdisp.gui.tabs.settings.CarSettingsPanel;
import fwdisp.gui.tabs.settings.DesignSettingsPanel;
import fwdisp.gui.tabs.settings.EmergencyTypeSettingsPanel;
import fwdisp.gui.tabs.settings.SchleifenSettingsPanel;
import fwdisp.gui.tabs.settings.StreetNameSettingsPanel;
import settings.MainSettingsManager;
import settings.collections.elements.PictureManager;
import imagetabpaine.ImageTabPanel;
import imagetabpaine.Tab;
import imagetabpaine.TabColors;
import java.awt.BorderLayout;
import javax.swing.JButton;

/**
 *
 * @author rbs
 */
public class SettingsTab extends ImageTabPanel{

    private PictureManager pics;

    private AnalyticalSettingsPanel analyticalSettingsPanel;
    private AusrueckSettingsPanel ausrueckSettingsPanel;
    private CarSettingsPanel carSettingsPanel;
    private DesignSettingsPanel designSettingsPanel;
    private SchleifenSettingsPanel ricSettingsPanel;
    private StreetNameSettingsPanel streetNameSettingsPanel;
    private EmergencyTypeSettingsPanel emergencyTypeSettingsPanel;
    private AreaSettingsPanel areaSettingsPanel;
    
    public SettingsTab() {
        super(140, BorderLayout.WEST);
        setTextPosition(JButton.RIGHT, JButton.CENTER);

        TabColors sec_row = MainSettingsManager.getSetting().getColorSettings().secRow;

        setTabColors(sec_row);

        this.setName("Einstellungen");

        pics = new PictureManager();

        designSettingsPanel = new DesignSettingsPanel();
        carSettingsPanel = new CarSettingsPanel();
        ricSettingsPanel = new SchleifenSettingsPanel();
        ausrueckSettingsPanel = new AusrueckSettingsPanel();
        streetNameSettingsPanel = new StreetNameSettingsPanel();
        analyticalSettingsPanel = new AnalyticalSettingsPanel();
        emergencyTypeSettingsPanel = new EmergencyTypeSettingsPanel();
        areaSettingsPanel = new AreaSettingsPanel();
        
        setImageSize(20);
//        setTextPosition(JButton.CENTER, JButton.BOTTOM);
        AddTab(new Tab(designSettingsPanel, pics.getImage("settings", "color.png")));
        AddTab(new Tab(carSettingsPanel, pics.getImage("settings", "cars.png")));
        AddTab(new Tab(ricSettingsPanel, pics.getImage("settings", "rics.png")));
        AddTab(new Tab(emergencyTypeSettingsPanel, pics.getImage("settings", "types.png")));
        AddTab(new Tab(ausrueckSettingsPanel, pics.getImage("settings", "list.png")));
        //AddTab(new Tab(streetNameSettingsPanel, pics.getImage("settings", "street.png")));
        AddTab(new Tab(analyticalSettingsPanel, pics.getImage("settings", "gear.png")));
        AddTab(new Tab(areaSettingsPanel, pics.getImage("settings", "area.png")));
        finizialize();

        setVisible(true);

    }

}
